<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>动画过渡单一属性</title>
  <style>
    div {
      width: 200px;
      height: 200px;
      background: yellow;
      transition-property: height, bacground;
      /* 过渡属性 */
      transition-duration: 2s;
      /* 过渡持续时间 */
      transition-timing-function: linear;
      /* 过渡动画类型 */
      transition-delay: 5s;
      /* 延迟过渡时间 */
    }

    div:hover {
      height: 600px;
      background: red;
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>